export interface SearchVariantDTO {
  name: string;
  inStock: string;
  brandId?: string;
  categoryId?: string;
  pageNo: number;
  pageSize: number;
}

export interface CreateSalesOrderDTO {
  customerId: string;
  branchId?: string;
  discountType?: string;
  discountPercent?: number; // 可选，因为可能为空
  discountAmount?: number; // 可选
  total: number;
  items: SalesItem[];
  paymentItems: PaymentItem[]; // 可选
}

export interface SalesItem {
  variantId: string;
  originPrice: number;
  unitPrice: number;
  quantity: number;
  snIds?: string[]; // 可选
}

export interface PaymentItem {
  method: string;
  amount: number;
}

export interface GetSnsDTO {
  variantId: string;
  statusList: string[];
  snName?: string;
  pageNo: number;
  pageSize: number;
}

export interface PaymentItemDTO {
  method: string;
  amount: number;
}

export interface AddSalesPaymentDTO {
  salesId: string;
  paymentItems: PaymentItemDTO[];
}


export interface SearchSnsListDTO {
  variantId?: string;
  status?: string;
  categoryId?: string;
  branchId?: string;
  snName?: string;
  pageNo: number;
  pageSize: number;
}
